Component({
    properties: {
      // 支持自定义样式
      customStyle: {
        type: String,
        value: ''
      }
    },
  
    data: {
      style: ''
    },
  
    lifetimes: {
      attached() {
        this.updateStyle()
      }
    },
  
    methods: {
      updateStyle() {
        this.setData({
          style: this.properties.customStyle
        })
      }
    }
  })